<odoo>
  <data>
    <!-- explicit list view definition -->
    <record model="ir.ui.view" id="classroom_list_view">
      <field name="name">classroom list</field>
      <field name="model">university.classroom</field>
      <field name="arch" type="xml">
        <tree>
          <field name="classroom_name"/>
          <field name="code"/>
        </tree>
      </field>
    </record>

    <!-- explicit form view definition -->
    <record model="ir.ui.view" id="classroom_form_view">
      <field name="name">classroom form</field>
      <field name="model">university.classroom</field>
      <field name="arch" type="xml">
        <tree>
          <field name="classroom_name"/>
          <field name="code"/>
          <field name="num_prof"/>
          <field name="num_sub"/>
          <field name="num_stud"/>
        </tree>
      </field>
    </record>

    <!-- actions opening views on models -->
    <record model="ir.actions.act_window" id="classroom_action_window">
      <field name="name">subject window</field>
      <field name="res_model">university.classroom</field>
      <field name="view_mode">tree,form</field>
    </record>

    <!-- Top menu item -->
    <menuitem name="University" id="university.menu_root" web_icon="university,static/description/icon.png"/>

    <!-- menu categories -->
    <menuitem name="Classrooms" id="university_classroom_cat" parent="university.menu_root" sequence="4"/>

    <!-- actions -->
    <menuitem name="List of classrooms" id="university_classroom_list" parent="university_classroom_cat"
              action="classroom_action_window"/>
  </data>
</odoo>